package org.example.order.api;

import org.example.core.utils.R;
import org.example.order.api.module.SkuInfo;
import org.example.order.api.module.SpuInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author 小杰_cc
 * @version 1.0
 */
@FeignClient("product-service")
public interface ProductService {
    @PostMapping("/pms/front/spuInfo/order")
    R<Map<Long, SpuInfo>> spuList(@RequestBody Set<Long> skuIds);

    @PostMapping("/pms/front/skuInfo/list")
    R<Map<Long, SkuInfo>> queryCartSkus(@RequestBody List<Long> skuIds);
}
